<?
include_once("codelibrary/inc/variables.php");//Using variables.php for Database Connectivity
//include_once("session.php");
include_once("codelibrary/inc/functions.php");
session_start();

$sess_trail_id = $_SESSION["sess_trail_id"];
if (!isset($_SESSION['sess_user_name']) or ($_SESSION['sess_user_name']=="") or ($_SESSION['accesstype']!="superadmin") )//only bracket amendment
{
	session_unset();
	session_destroy();
	header("location:index1.php?logerr=register");
	die();
}
?>